function getParams(key) {
  let query = window.location.href.split("?")[1];
  query = decodeURI(query);
  let arr = query.split("&");
  for (let i = 0; i < arr.length; i++) {
    var tempArr = arr[i].split("=");
    if (tempArr[0] == key) return tempArr[1];
  }
  return false;
}
